package com.stylefeng.guns.modular.purchase.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.dto.PurchaseAddRequest;
import com.stylefeng.guns.modular.dto.PurchaseQueryRequest;
import com.stylefeng.guns.modular.system.model.Purchase;
import com.baomidou.mybatisplus.service.IService;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuXin
 * @since 2018-09-12
 */
public interface IPurchaseService extends IService<Purchase> {

    /**
     * 分页和数据范围
     * @param request 查询条件
     * @return 结果集
     */
    Page<Purchase> selectPageWithDataScope(Page<Purchase> page,PurchaseQueryRequest request);

    boolean insertListAndGoods(PurchaseAddRequest request);

}
